package com.qk.management.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.qk.domain.business.BusinessCountDo;
import com.qk.domain.business.BusinessCustomerDO;
import com.qk.domain.business.BusinessDo;
import com.qk.domain.customers.CustomersDO;
import com.qk.dto.business.BusinessListDTO;
import com.qk.dto.business.BusinessPoolDTO;
import com.qk.dto.customer.CustomerDTO;
import com.qk.entity.Business;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 *
 * @author MrZhao
 * @created 2025-10-15 10:48
 * @description 商机Mapper
 *
 */
@Mapper
public interface BusinessMapper extends BaseMapper<Business> {
    BusinessCountDo selectCountBusiness();

    Page<BusinessDo> selectByPageMp(Page pages, BusinessListDTO dto);

    List<CustomersDO> selectByPage(CustomerDTO dto);

    Page<Business> selectByPageP(Page pages, BusinessPoolDTO dto);
    BusinessCustomerDO getByCusId(Integer id);

    void updateBy(BusinessCustomerDO dto);
}